<?php 

header("Content-type: image/png");

$src = imageCreateTrueColor(200,100); 
//根据画布选择颜色
$color = imageColorAllocate($src,255,255,255); 
// 填充
imageFill($src,0,0,$color);
$color = imageColorAllocate($src,0,255,255); 

imagettftext($src, 100, 0, 0, 30, $color, './HalfTones.ttf', 'a');
	$color = imageColorAllocate($src,0,0,255); 
	imagerectangle($src, 10, 10, 100, 50, $color);
	imagepng($src);

















 ?>